package com.jwdf.uda.http.action;

import android.content.Context;

import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.http.AHttpService;
import com.jwdf.uda.http.ApiService;

import retrofit2.Call;

/**
 * 类说明：
 * 作者：huangqiuxin on 2016/6/14 15:37
 * 邮箱：648859026@qq.com
 */
public class GuideCancelAction extends AHttpService<PbBean.PbResGuideCancel>{
    public static GuideCancelAction newInstance(Context context, int id){
        return new GuideCancelAction(context, id);
    }

    private int id;
    private GuideCancelAction(Context context, int id) {
        super(context);
        this.id = id;
    }

    @Override
    protected Call newRetrofitCall(ApiService apiService, PbBean.PbBaseClientInfo.Builder baseBuilder) {
        PbBean.PbReqGuideCancel.Builder builder = PbBean.PbReqGuideCancel.newBuilder();
        builder.setBaseClientInfo(baseBuilder);
        builder.setId(id);

        return apiService.guideCancel(builder.build());
    }
}
